import { Component } from 'react'
import { View, Text } from '@tarojs/components'
import { AtButton, AtAvatar } from 'taro-ui'
import "taro-ui/dist/style/components/button.scss" // 按需引入
import './index.less'
import TabBar from "../common/taBar";


//体质辨识记录
import Taro from '@tarojs/taro';


export default class Index extends Component {
  state = {//内置变量
    name: 'zhangsan'
  }

  shouldComponentUpdate(nextProps, nextState) {//更改即将发生时候执行
    if (nextState.name == 'lisi')
      return true
    else
      return false;//表示该更改state变量的动作失效
  }


  render() {
    return (
      <View className='index'>

        <view className='table-card' >
      
          <View className='at-row title'>
            <View className='at-col'>日期</View>
            <View className='at-col'>体质</View>
            <View className='at-col'>操作</View>
          </View>
          <View className='at-row table-td-wi'>
      
            <View className='at-col'>2021-08-10</View>
            <View className='at-col'>是平和质，偏向是阴虚质</View>
            <View className='at-col'><Text>查看</Text></View>
          </View>
          <View className='at-row table-td-hu'>
      
            <View className='at-col'>2021-08-10</View>
            <View className='at-col'>是平和质，偏向是阴虚质</View>
            <View className='at-col'><Text>查看</Text></View>
          </View>
        </view>
        <TabBar tabBarCurrent={3} />
      </View>
    )
  }
}
